<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新发通知</title>
<script charset="utf-8"
	src="${ pageContext.request.contextPath }/resources/editor/kindeditor.js"></script>
<script charset="utf-8"
	src="${ pageContext.request.contextPath }/resources/editor/lang/zh_CN.js"></script>
<script>
	KindEditor
			.ready(function(K) {
				window.editor = K
						.create(
								'#editor_id',
								{
									items : [ 'source', '|', 'undo', 'redo',
											'|', 'preview', 'print',
											'template', 'code', 'cut', 'copy',
											'paste', 'plainpaste', 'wordpaste',
											'|', 'justifyleft',
											'justifycenter', 'justifyright',
											'justifyfull', 'insertorderedlist',
											'insertunorderedlist', 'indent',
											'outdent', 'subscript',
											'superscript', 'clearhtml',
											'quickformat', 'selectall', '|',
											'fullscreen', '/', 'formatblock',
											'fontname', 'fontsize', '|',
											'forecolor', 'hilitecolor', 'bold',
											'italic', 'underline',
											'strikethrough', 'lineheight',
											'removeformat', '|', 'image',
											'multiimage', 'media',
											'insertfile', 'table', 'hr',
											'emoticons', 'pagebreak', 'anchor',
											'link', 'unlink', '|', 'about' ],
									uploadJson : '${ pageContext.request.contextPath }/file_upload',
									fileManagerJson : '${ pageContext.request.contextPath }/file_manager',//文件管理
									allowFileManager : true,
								});
			});
</script>
<link rel="stylesheet" type="text/css"
	href="${ pageContext.request.contextPath }/resources/csses/new.css">
<style type="text/css">
div#pagetitle {
	text-align: left;
	background: Gainsboro;
	margin-left: -50px;
	margin-right: -50px;
	padding-left: 30px;
	font-size: 14px;
	letter-spacing: 5px;
	margin-top: 10px;
}

.title {
	width: 360px;
	margin-left: 10px;
	padding-left: 8px;
	padding-rigth: 8px;
	padding-top: 2px;
	padding-bottom: 2px;
	font-size: 16px;
}

button, input[type="submit"] {
	border: 1px solid #999;
	padding: 5px 10px;
	cursor: pointer;
	line-height: 100%;
}

body {
	padding: 0;
	font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
	font-size: 14px;
}
</style>
</head>
<body>
	<center>
		<div id="newsbody" align="center">
			<sf:form
				action="${ pageContext.request.contextPath }/${ roler }/savenotification"
				method="post" modelAttribute="notification" acceptCharset="utf-8">
				<div id="pagetitle">编辑通知：</div>
				<table style="width: 100%;">
					<tr>
						<td align="center">通知标题： <sf:input path="title"
								cssClass="title" /></td>
					</tr>
					<tr>
						<td><div align="left">通知正文：</div></td>
					</tr>
					<tr>
						<td><div align="center">
								<%-- <sf:textarea path="detail" rows="20" id="editor_id" name="content"
						cssStyle="width: 90%; text-indent: 2em; font-size: 16px; resize: none; padding: 30px;" /> --%>
								<sf:textarea path="detail" id="editor_id" name="content"
									cssStyle="width:100%;height: 400px; text-indent: 2em; font-size: 16px; resize: none; padding: 30px;" />
							</div></td>
					</tr>
					<tr>
						<td><div align="right">
								<label style="float: left; font-size: 10px;">置顶</label>
								<sf:checkbox path="toped" value="${ toped }"
									cssStyle="float: left; margin-top: 8px;" />
								<!-- <s:checkbox name="notification.toped" type="checkbox"
					style="float: left; margin-top: 8px;"></s:checkbox> -->
								<input type="submit" value="确定" />
								<button id="back" onclick="window.history.back()" type="button"
									>取消</button>
							</div>
					</tr>
				</table>
			</sf:form>
		</div>
	</center>
</body>
</html>